<template>
  <div class="wrapper">
    <el-form :model="ruleForm" ref="ruleForm" label-width="100px" class="demo-ruleForm">
      <el-row>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect1" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect2" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect3" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect4" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect5" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect6" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect7" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect8" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect9" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect10" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect11" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect12" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect13" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect14" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect15" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect16" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect17" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect18" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect19" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect20" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect21" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect22" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect23" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect24" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect25" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect26" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect27" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect28" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect29" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item 
            label="活动名称"
            :rules="[
              { required: true, message: '请输入邮箱地址', trigger: 'blur' },
              { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
            ]"
          >
            <StoreSelectComp :store="storeSelect30" :signData="{id: 'id', value: 'name', label: 'label'}" v-model="ruleForm.name"></StoreSelectComp>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    
  </div>
</template>
<script>
import StoreSelectComp from '@/components/Select/StoreSelectComp.vue'
import {
StoreSelect1,
StoreSelect2,
StoreSelect3,
StoreSelect4,
StoreSelect5,
StoreSelect6,
StoreSelect7,
StoreSelect8,
StoreSelect9,
StoreSelect10,
StoreSelect11,
StoreSelect12,
StoreSelect13,
StoreSelect14,
StoreSelect15,
StoreSelect16,
StoreSelect17,
StoreSelect18,
StoreSelect19,
StoreSelect20,
StoreSelect21,
StoreSelect22,
StoreSelect23,
StoreSelect24,
StoreSelect25,
StoreSelect26,
StoreSelect27,
StoreSelect28,
StoreSelect29,
StoreSelect30,
} from './index'

export default {
    created(){
      this.storeSelect1  = new  StoreSelect1()
      this.storeSelect2  = new  StoreSelect2()
      this.storeSelect3  = new  StoreSelect3()
      this.storeSelect4  = new  StoreSelect4()
      this.storeSelect5  = new  StoreSelect5()
      this.storeSelect6  = new  StoreSelect6()
      this.storeSelect7  = new  StoreSelect7()
      this.storeSelect8  = new  StoreSelect8()
      this.storeSelect9  = new  StoreSelect9()
      this.storeSelect10  = new StoreSelect10()
      this.storeSelect11  = new StoreSelect11()
      this.storeSelect12  = new StoreSelect12()
      this.storeSelect13  = new StoreSelect13()
      this.storeSelect14  = new StoreSelect14()
      this.storeSelect15  = new StoreSelect15()
      this.storeSelect16  = new StoreSelect16()
      this.storeSelect17  = new StoreSelect17()
      this.storeSelect18  = new StoreSelect18()
      this.storeSelect19  = new StoreSelect19()
      this.storeSelect20  = new StoreSelect20()
      this.storeSelect21  = new StoreSelect21()
      this.storeSelect22  = new StoreSelect22()
      this.storeSelect23  = new StoreSelect23()
      this.storeSelect24  = new StoreSelect24()
      this.storeSelect25  = new StoreSelect25()
      this.storeSelect26  = new StoreSelect26()
      this.storeSelect27  = new StoreSelect27()
      this.storeSelect28  = new StoreSelect28()
      this.storeSelect29  = new StoreSelect29()
      this.storeSelect30  = new StoreSelect30()
    },
    data() {
      return {
        ruleForm: {
          name: '',
          region: '',
          date1: '',
          date2: '',
          delivery: false,
          type: [],
          resource: '',
          desc: ''
        },
      };
    },
    components: {
      StoreSelectComp
    },
    methods: {
      submitForm(formName) {
        this.$refs[formName].validate((valid) => {
          if (valid) {
            alert('submit!');
          } else {
            console.log('error submit!!');
            return false;
          }
        });
      },
      resetForm(formName) {
        this.$refs[formName].resetFields();
      }
    }
}
</script>  